PROJ = squadron
OBJS = src\main.o src\Game.o src\Map.o src\Camera.o src\Cursor.o \
	   src\Unit.o src\Knight.o src\SpriteManager.o

CC = g++
CFLAGS = -g3 -pedantic -Wall -enable-auto-import
# hide console window
#CFLAGS += -Wl,-subsystem,windows
LIBS = -lmingw32 -lsfml-graphics-s -lsfml-window-s -lsfml-system-s

$(PROJ).exe: $(OBJS)
	$(CC) $(CFLAGS) $(OBJS) -o $@ $(LIBS)

clean:
	-del $(OBJS) $(PROJ).exe
